home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 August / PC Plus SuperCD 50b Issue 142 (CD142b) (August 1998).iso / full / nt / MSSql / I386 / sqlx86.exe / PTK / SAMPLES / MSDTC / TSQL / UPDADR.SQL < prev   
Encoding:
Text File  |  1996-04-03  |  277 b   |  10 lines

  1. if exists (select * from sysobjects where id = object_id('dbo.update_addr') and sysstat & 0xf = 4)
  2.     drop procedure dbo.update_addr
  3. GO
  4.  
  5. CREATE PROCEDURE update_addr(@au_id varchar(11), @addr varchar(40)) AS
  6.     update authors set address = @addr where au_id = @au_id
  7.  
  8. GO
  9.  
  10.